<?php

if ($ticket_parent!=1) {
	header('Location: class_manager.php');
	exit;
}

if(!empty($errors) || !empty($warnings) || !empty($status)){
?>
	<table class="top-level">
	<?php if(!empty($errors)) { ?>
		<tr class="err">
			<td width="60px" valign="top">
				<img alt="Error" src="images/error.png" width="60px" height="60px">
			</td>
			<td valign="top" align="left">
				<ul style="padding:0;margin:0px 0px 8px 16px;">
					<?php foreach ($errors as $msg) { ?><li><?=$msg; ?></li><?php } ?>
				</ul>
			</td>
		</tr>
	<?php } ?>
	<?php if(!empty($warnings)) { ?>
		<tr class="warn">
			<td width="60px" valign="top">
				<img alt="Warning" src="images/warning.png" width="60px" height="60px">
			</td>
			<td valign="top" align="left">
				<ul style="padding:0;margin:0px 0px 8px 16px;">
					<?php foreach ($warnings as $msg) { ?><li><?=$msg; ?></li><?php } ?>
				</ul>
			</td>
		</tr>
	<?php } ?>
	<?php if(!empty($status)) { ?>
		<tr class="stat">
			<td width="60px" valign="top">
				<img alt="Status" src="images/status.png" width="60px" height="60px">
			</td>
			<td valign="top" align="left">
				<ul style="padding:0;margin:0px 0px 8px 16px;">
					<?php foreach ($status as $msg) { ?><li><?=$msg; ?></li><?php } ?>
				</ul>
			</td>
		</tr>
	<?php } ?>
	</table>
<?php
}
?>		
		